package org.kazuhiko.rpg.client.net.packet.handler.handlers;

import org.kazuhiko.rpg.client.net.RPGSession;
import org.kazuhiko.rpg.client.net.packet.Packet;
import org.kazuhiko.rpg.client.net.packet.handler.PacketHandler;

public class MessagePacketHandler implements PacketHandler<RPGSession>
{
	@Override
	public void handlePacket( RPGSession session, Packet packet )
	{
		String message = packet.getStringField( "message" );
		System.out.println( "Received message: " + message );
	}
}
